import request from '@/utils/request'

export function index() {
	return request({
		url: '/user/index',
		method: 'get'
	})
}

export function readRecord(id) {
	return request({
		url: '/notice/read?noticeId=' + id,
		method: 'get'
	})
}

export function consultMore() {
	return request({
		url: '/consult/more',
		method: 'get'
	})
}

export function consult(id) {
	return request({
		url: '/consult/' + id,
		method: 'get'
	})
}

export function indexNotice() {
	return request({
		url: '/notice/index',
		method: 'get'
	})
}

export function recently(pageNum) {
	return request({
		url: '/system/income/recently?pageNum=' + pageNum,
		method: 'get'
	})
}

export function priceInfo(query) {
	return request({
		url: '/product/priceInfo',
		method: 'get',
		params: query
	})
}

export function setPrice(data) {
	return request({
		url: '/product/setPrice',
		method: 'put',
		data: data
	})
}

export function productNames() {
	return request({
		url: '/product/names',
		method: 'get'
	})
}

export function getPayList(query) {
	return request({
		url: '/pay/list',
		method: 'get',
		params: query
	})
}

export function getPayInfo(orderNo) {
	return request({
		url: '/pay/' + orderNo,
		method: 'get'
	})
}

export function getValue(key) {
	return request({
		url: '/system/config/getValue/' + key,
		method: 'get'
	})
}

export function QRCodeImg() {
	return request({
		url: '/wx/QRCodeImg',
		method: 'get'
	})
}

export function value(key) {
	return request({
		url: '/value/' + key,
		method: 'get'
	})
}